<template>
  <footer>
    <div v-for="(item, index) in FootList" :key="index">
      <router-link :to="{ name: item.name }">
        <i class="iconfont" :class="item.icon"></i>
        <span>{{ item.text }}</span>
        <!-- 右上角的标签 -->
        <van-tag class="hot" :color="$route.name==item.name?'red':'#999'"  v-if="item.hot"> {{biaoqiannum}} </van-tag>
      </router-link>
    </div>
  </footer>
</template>
<script>
export default {
  name: "myfoot",
};
</script>
<style lang="scss" scoped>
footer {
  position: fixed;
  width: 100%;
  height: 45px;
  left: 0;
  bottom: 0;
  background: #0003;
  color: #fff;
  display: flex !important;
  z-index: 3000;
  border-top: 0.5px solid #b9b9b9;
  div {
    flex: 1;
    height: 45px;
    a {
      display: block;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      padding: 3px 0;
      text-align: center;
      font-family: "微软雅黑";
      color: #fff;
      position: relative;
      i {
        width: 100%;
        height: 20px;
        line-height: 20px;
        font-size: 18px !important;
      }
      span {
        width: 100%;
        height: 19px;
        line-height: 19px;
        font-size: 14px;
      }
      .hot{
        position: absolute;
        top: 3px;
        left: 60%;
        display: inline-block;
        width: 20px;
        height: 16px;
        font-size: 12px;
        line-height: 16px;
        border-radius: 50%;
        // background: red;
        // color:#fff;
      }
    }
    .nav-active,
    .router-link-exact-active,
    .router-link-active {
      color: red;
      border-color: #ff5f16;
    }
  }
}
</style>